package com.chen.vo.login;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * ClassName: LoginReqVO
 * Package: com.chen.controller.vo.login
 * Description:
 *
 * @Author 陈俊辉
 * @Create 2024/4/12 2:39
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Schema(description = "登录操作的请求参数")
public class LoginReqVO {
    @Schema(name = "username", example = "陈")
    @NotNull(message = "登录用户名不能为空")
    public String username;

    @Schema(name = "password", example = "123456")
    @NotNull(message = "登录密码不能为空")
    public String password;
}
